from django.urls import path
from rest_framework.routers import DefaultRouter

from diet import views
from diet.views import GenerateDietPlanView, UserMealPlansView, UserProfileView, MealPlanDetailView, GetQiNiuToken, \
    NutritionAnalysisView, GetUserProfileView

urlpatterns = [
    path('generate-plan/', GenerateDietPlanView.as_view(), name='generate-diet-plan'),
    path('my-plans/', UserMealPlansView.as_view(), name='user-meal-plans'),
    path('user-profile/', UserProfileView.as_view(), name='user-profile'),
    path('plan-detail/<int:plan_id>/', MealPlanDetailView.as_view(), name='meal-plan-detail'),
    path('qiniu-token/', GetQiNiuToken.as_view(), name='qiniu-token'),
    path('nutrition-analyze/', NutritionAnalysisView.as_view(), name='nutrition-analysis'),
    path('nutrition-user-profile/', GetUserProfileView.as_view(), name='nutrition-user-profile'),

]